package com.moter.demo01.io.in_outputstream.filterstream.bufferedIstream;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * size
 */
public class BufferedOutputStreamDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream file = new FileOutputStream("src\\main\\java\\com\\moter\\demo01\\io\\in_outputstream\\filterstream\\bufferedIstream\\buffer.txt");
        BufferedOutputStream outputStream = new BufferedOutputStream(file, 1);
        byte[] b = "你好".getBytes();
        System.out.println(b.length);
        outputStream.write(b);
        outputStream.flush();
        outputStream.close();

    }
}
